﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;

namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/1/12 11:34:29
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_PersonnelInfo", new string[] { "Pi_ID" })]
    public class PlmPersonnelinfoInfo : BaseEntity
    {
        public PlmPersonnelinfoInfo()
        {

        }
        
        
        private string _piId;
        /// <summary>
        /// 人员信息主键
        /// </summary>
        [ColumnMap("Pi_ID", System.Data.DbType.String)]
        public string Pi_ID
        {
            get {return _piId;}
            set
            {
                if (object.Equals(this._piId, value) != true)
                {
                    this._piId = value;
                    this.RaisePropertyChanged("Pi_ID");
                }
            }
        }
        
        
        private int _piSectionid;
        /// <summary>
        /// 所属标段ID
        /// </summary>
        [ColumnMap("Pi_SectionID", System.Data.DbType.Int32)]
        public int Pi_SectionID
        {
            get {return _piSectionid;}
            set
            {
                if (object.Equals(this._piSectionid, value) != true)
                {
                    this._piSectionid = value;
                    this.RaisePropertyChanged("Pi_SectionID");
                }
            }
        }
        
        
        private string _piSectionname;
        /// <summary>
        /// 所属标段名称
        /// </summary>
        [ColumnMap("Pi_SectionName", System.Data.DbType.String)]
        public string Pi_SectionName
        {
            get {return _piSectionname;}
            set
            {
                if (object.Equals(this._piSectionname, value) != true)
                {
                    this._piSectionname = value;
                    this.RaisePropertyChanged("Pi_SectionName");
                }
            }
        }
        
        
        private int _piUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Pi_UserID", System.Data.DbType.Int32)]
        public int Pi_UserID
        {
            get {return _piUserid;}
            set
            {
                if (object.Equals(this._piUserid, value) != true)
                {
                    this._piUserid = value;
                    this.RaisePropertyChanged("Pi_UserID");
                }
            }
        }
        
        
        private string _piUsername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("Pi_UserName", System.Data.DbType.String)]
        public string Pi_UserName
        {
            get {return _piUsername;}
            set
            {
                if (object.Equals(this._piUsername, value) != true)
                {
                    this._piUsername = value;
                    this.RaisePropertyChanged("Pi_UserName");
                }
            }
        }
        
        
        private DateTime _piUpdatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Pi_UpdateTime", System.Data.DbType.DateTime)]
        public DateTime Pi_UpdateTime
        {
            get {return _piUpdatetime;}
            set
            {
                if (object.Equals(this._piUpdatetime, value) != true)
                {
                    this._piUpdatetime = value;
                    this.RaisePropertyChanged("Pi_UpdateTime");
                }
            }
        }
        
        
        private int _piUnitid;
        /// <summary>
        /// 监理或者施工单位主键
        /// </summary>
        [ColumnMap("Pi_UnitID", System.Data.DbType.Int32)]
        public int Pi_UnitID
        {
            get {return _piUnitid;}
            set
            {
                if (object.Equals(this._piUnitid, value) != true)
                {
                    this._piUnitid = value;
                    this.RaisePropertyChanged("Pi_UnitID");
                }
            }
        }
        
        
        private string _piUnittname;
        /// <summary>
        /// 监理或者施工单位名称
        /// </summary>
        [ColumnMap("Pi_UnittName", System.Data.DbType.String)]
        public string Pi_UnittName
        {
            get {return _piUnittname;}
            set
            {
                if (object.Equals(this._piUnittname, value) != true)
                {
                    this._piUnittname = value;
                    this.RaisePropertyChanged("Pi_UnittName");
                }
            }
        }
        
        
        private string _piName;
        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(20, ErrorMessage = "字符长度超出范围")]
        [ExcelImportValidation("姓名",2, false, "请输入姓名", "请输入姓名")]
        [ColumnMap("Pi_Name", System.Data.DbType.String)]
        public string Pi_Name
        {
            get {return _piName;}
            set
            {
                if (object.Equals(this._piName, value) != true)
                {
                    this._piName = value;
                    this.RaisePropertyChanged("Pi_Name");
                }
            }
        }
        
        
        private string _piSex;
        /// <summary>
        /// 性别
        /// </summary>
        [ExcelImportValidation("性别", 4, "性别")]
        [ColumnMap("Pi_Sex", System.Data.DbType.String)]
        public string Pi_Sex
        {
            get {return _piSex;}
            set
            {
                if (object.Equals(this._piSex, value) != true)
                {
                    this._piSex = value;
                    this.RaisePropertyChanged("Pi_Sex");
                }
            }
        }
        
        
        private int? _piAge;
        /// <summary>
        /// 年龄
        /// </summary>
        [ExcelImportValidation("年龄", 5, "年龄")]
        [ColumnMap("Pi_Age", System.Data.DbType.Int32)]
        public int? Pi_Age
        {
            get {return _piAge;}
            set
            {
                if (object.Equals(this._piAge, value) != true)
                {
                    this._piAge = value;
                    this.RaisePropertyChanged("Pi_Age");
                }
            }
        }
        
        
        private string _piIdno;
        /// <summary>
        /// 身份证号
        /// </summary>
        [ExcelImportValidation("身份证号", 6, "身份证号")]
        [ColumnMap("Pi_IDNo", System.Data.DbType.String)]
        public string Pi_IDNo
        {
            get {return _piIdno;}
            set
            {
                if (object.Equals(this._piIdno, value) != true)
                {
                    this._piIdno = value;
                    this.RaisePropertyChanged("Pi_IDNo");
                }
            }
        }
        
        
        private string _piPost;
        /// <summary>
        /// 职位
        /// </summary>
        [ExcelImportValidation("职位",7, "职位")]
        [ColumnMap("Pi_Post", System.Data.DbType.String)]
        public string Pi_Post
        {
            get {return _piPost;}
            set
            {
                if (object.Equals(this._piPost, value) != true)
                {
                    this._piPost = value;
                    this.RaisePropertyChanged("Pi_Post");
                }
            }
        }
        
        
        private string _piProfessional;
        /// <summary>
        /// 职称
        /// </summary>
        [ExcelImportValidation("职称", 8, "职称")]
        [ColumnMap("Pi_Professional", System.Data.DbType.String)]
        public string Pi_Professional
        {
            get {return _piProfessional;}
            set
            {
                if (object.Equals(this._piProfessional, value) != true)
                {
                    this._piProfessional = value;
                    this.RaisePropertyChanged("Pi_Professional");
                }
            }
        }
        
        
        private string _piPhone;
        /// <summary>
        /// 联系电话
        /// </summary>
         [ExcelImportValidation("联系电话", 9, "联系电话")]
        [ColumnMap("Pi_Phone", System.Data.DbType.String)]
        public string Pi_Phone
        {
            get {return _piPhone;}
            set
            {
                if (object.Equals(this._piPhone, value) != true)
                {
                    this._piPhone = value;
                    this.RaisePropertyChanged("Pi_Phone");
                }
            }
        }
        
        
        private string _piEmail;
        /// <summary>
        /// 邮箱
        /// </summary>
         [ExcelImportValidation("邮箱", 10, "邮箱")]
        [ColumnMap("Pi_Email", System.Data.DbType.String)]
        public string Pi_Email
        {
            get {return _piEmail;}
            set
            {
                if (object.Equals(this._piEmail, value) != true)
                {
                    this._piEmail = value;
                    this.RaisePropertyChanged("Pi_Email");
                }
            }
        }
        
        
        private string _piLicense;
        /// <summary>
        /// 执业证
        /// </summary>
        [ExcelImportValidation("执业证书类型", 11, "执业证书类型")]
        [ColumnMap("Pi_License", System.Data.DbType.String)]
        public string Pi_License
        {
            get {return _piLicense;}
            set
            {
                if (object.Equals(this._piLicense, value) != true)
                {
                    this._piLicense = value;
                    this.RaisePropertyChanged("Pi_License");
                }
            }
        }
        
        
        private string _piLicensenum;
        /// <summary>
        /// 执业证编号
        /// </summary>
        [ExcelImportValidation("执业证书编号", 12, "执业证书编号")]
        [ColumnMap("Pi_LicenseNum", System.Data.DbType.String)]
        public string Pi_LicenseNum
        {
            get {return _piLicensenum;}
            set
            {
                if (object.Equals(this._piLicensenum, value) != true)
                {
                    this._piLicensenum = value;
                    this.RaisePropertyChanged("Pi_LicenseNum");
                }
            }
        }

        private int? _piNum;
        /// <summary>
        /// 编号
        /// </summary>
         [ExcelImportValidation("编号", 1, "编号")]
        [ColumnMap("Pi_Num", System.Data.DbType.Int32)]
        public int? Pi_Num
        {
            get { return _piNum; }
            set
            {
                if (object.Equals(this._piNum, value) != true)
                {
                    this._piNum = value;
                    this.RaisePropertyChanged("Pi_Num");
                }
            }
        }

        private string _piWorknum;
        /// <summary>
        /// 工号
        /// </summary>
         [ExcelImportValidation("工号", 3, "工号")]
        [ColumnMap("Pi_WorkNum", System.Data.DbType.String)]
        public string Pi_WorkNum
        {
            get { return _piWorknum; }
            set
            {
                if (object.Equals(this._piWorknum, value) != true)
                {
                    this._piWorknum = value;
                    this.RaisePropertyChanged("Pi_WorkNum");
                }
            }
        }

        private int _assist_ID;
        /// <summary>
        /// 附件id
        /// </summary>
        [ColumnMap("Assist_ID", System.Data.DbType.Int32)]
        public int Assist_ID
        {
            get { return _assist_ID; }
            set
            {
                if (object.Equals(this._assist_ID, value) != true)
                {
                    this._assist_ID = value;
                    this.RaisePropertyChanged("Assist_ID");
                }
            }
        }

    }
}


